package com.tan.domain;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 
 * @author longshifu
 * @TableName blog
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Blog implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private String title;

    /**
     * 
     */
    private String content;

    /**
     * 
     */
    private Long appreciation;

    /**
     * 
     */
    private Boolean commentabled;

    /**
     * 
     */
    private String description;

    /**
     * 
     */
    private String firstPicture;

    /**
     * 
     */
    private String flag;

    /**
     * 
     */
    private Boolean published;

    /**
     * 
     */
    private Boolean recommend;

    /**
     * 
     */
    private Boolean shareStatement;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 
     */
    private Integer views;

    /**
     * 
     */
    private Long typeId;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private Integer tagId;

//    /**
//     * 多对一
//      */
//    private Type type;
//
//    private List<Tag> tags;
//
//    private User user;
//
//    private List<Comment> comments ;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}